package com.yun.zf.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yun.zf.common.admin.dto.order.SubOrderDto;
import com.yun.zf.common.admin.model.order.SubOrderMo;
import com.yun.zf.common.app.domain.ZfSubOrder;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 合同订单分项明细 服务类
 * </p>
 *
 * @author cj
 * @since 2021-04-25
 */
public interface ZfSubOrderService extends IService<ZfSubOrder> {
    /**
     *
     * @param type 类型，1租赁，2买卖
     * @param finalPrice 成交价
     * @param communityId 小区id
     * @return
     */
    public List<SubOrderMo> computeAmount(String type , BigDecimal finalPrice, Long communityId, Long provCode, Long cityCode);
    public  Boolean addOrderDetail(Long provCode,Long cityCode,Long orderId,List<SubOrderMo> list);

    public List<SubOrderDto> getDetails(Long provCode, Long cityCode, Long orderId);

    int delSubOrders(Long provCode, Long cityCode, Long orderId);
}
